Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 18.23b
A small grillwork texture image repeated across a square face using texture-coordinate scaling. |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Shape { appearance Appearance { material Material { } texture ImageTexture { url "grill.png" } textureTransform TextureTransform { scale 32.0 8.0 center 0.5 0.5 } } geometry IndexedFaceSet { solid FALSE coord Coordinate { point [ -4.0 -1.0 0.1, 4.0 -1.0 0.1, 4.0 1.0 0.1, -4.0 1.0 0.1, ] } coordIndex [ 0, 1, 2, 3 ] texCoord TextureCoordinate { point [ 0.0 0.0, 1.0 0.0, 1.0 1.0, 0.0 1.0, ] } texCoordIndex [ 0, 1, 2, 3 ] } }